package com.rc.evcharger.redis;


import com.rc.evcharger.common.dto.ChargeBalaceDto;

public interface RedPileService {
    //public interface RedPileService<T extends RecordSource> {
    //void putPileToRedis(String rtua, ChargeReportResult crr);

    void putPileToRedis(String rtua, ChargeBalaceDto cbdto);

    void delHashKeyMap(String rtua, String gunNum);

    /**
     * 添加充电中redis异步约束，防止负数订单
     * @param rtua
     * @param gun
     * @param explainSecond
     * @return
     */
    boolean checkExpireGun(String rtua,String gun,Integer explainSecond);

    boolean checkHlhtExpireReq(String orderNum, Integer milliSecond);
}
